package com.eboss2.sbs.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.eboss2.sbs.R;
import com.eboss2.sbs.activity.base.TabBasicActivity;
import com.mytools.tool.activityManager.MyActivityManager;

public class ShopStroeActivity extends TabBasicActivity implements View.OnClickListener{

	private ImageView img_user_icon;
	private TextView tv_name;
	private TextView tv_time;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mContext = this;
		setContentView(R.layout.fragment_my_shop_store);
		MyActivityManager.getInstance().addActivity(this);
//		StatusBarUtil.setColor(this, getResources().getColor(R.color.statusBar), 0);
		initView();
	}
	
	private void initView(){

		RelativeLayout relativeLayout = relativeLayout(R.id.lv_heard);
		relativeLayout.setBackgroundColor(getResources().getColor(R.color.statusBar));

		showView(R.id.titleback_btn_back, false);
		setTvText(R.id.tv_title, "商城管理");
		showView(R.id.next_sure, false);
//		setTvText(R.id.next_sure, "设置");


		relativeLayout(R.id.rl_order_manager).setOnClickListener(this);
		relativeLayout(R.id.rl_yy_order_manager).setOnClickListener(this);
		relativeLayout(R.id.rl_self_order).setOnClickListener(this);
		relativeLayout(R.id.rl_pj_manager).setOnClickListener(this);
		relativeLayout(R.id.rl_shop_store).setOnClickListener(this);
		relativeLayout(R.id.rl_add_store).setOnClickListener(this);
		relativeLayout(R.id.rl_sh).setOnClickListener(this);
		relativeLayout(R.id.rl_shop_service_manager).setOnClickListener(this);
		relativeLayout(R.id.rl_shop_service_pj_manager).setOnClickListener(this);
		relativeLayout(R.id.rl_add_service_store).setOnClickListener(this);
		relativeLayout(R.id.rl_sh_detail).setOnClickListener(this);


	}
	
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
			case R.id.rl_order_manager:
				startActivity(new Intent(mContext, MyOrderManagerActivity.class));
				break;
			case R.id.rl_yy_order_manager:
				startActivity(new Intent(mContext, ServiceGoodsOrderListManagerActivity.class));
				break;
			case R.id.rl_self_order:
				startActivity(new Intent(mContext, MyWalletBalanceActivity.class));
				break;
			case R.id.rl_pj_manager:
				startActivity(new Intent(mContext, MyPointBlanceActivity.class));
				break;
			case R.id.rl_shop_store:
				startActivity(new Intent(mContext, StoreManagerActivity.class));
				break;
			case R.id.rl_add_store:
				startActivity(new Intent(mContext, MyAddShopStoreActivity.class));
				break;
			case R.id.rl_sh:
				startActivity(new Intent(mContext, MyOperatorManagerActivity.class));
				break;
			case R.id.rl_shop_service_manager:
				startActivity(new Intent(mContext, ServiceManagerActivity.class));
				break;
			case R.id.rl_shop_service_pj_manager:
				startActivity(new Intent(mContext, MyMchInviteActivity.class));
				break;
			case R.id.rl_add_service_store:
				startActivity(new Intent(mContext, MyAddServiceStoreActivity.class));
				break;
			case R.id.rl_sh_detail:
				startActivity(new Intent(mContext, MySettingActivity.class));
				break;
			default: break;
		}
	}
	
}
